@extends('admin.layout.layout', ['row' => @$page])

@section('contain')


    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green-sharp bold uppercase">{{ @$page['title'] }}</span>
            </div>
            <div class="actions">
                <div class="item">
                    <a href="/{{ request()->path() }}/create" class="btn btn-sm btn-primary">新增</a>
                </div>
            </div>
        </div>

        <div>
            <table class="table table-s1">
                <thead>
                <tr>
                    @empty($thead)
                    @else
                        @foreach($thead as $t)
                            <th>{{ $t }}</th>
                        @endforeach
                    @endif
                    <th style="width:270px">操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($tbody as $tb)
                    <tr>
                        @foreach($tb as $key => $value)
                            <td>{{ $value }}</td>
                        @endforeach
                    </tr>
                @endforeach
                </tbody>
            </table>
            <div class="my-3">
                {{ $data->appends(request()->input())->links() }}
            </div>
        </div>
    </div>
@endsection